import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString, Length } from 'class-validator';

export class TagDto {
  @ApiProperty({ required: true, description: '标签名称' })
  @IsString({ message: '名称只能是字符串' })
  @IsNotEmpty({ message: '名称不能为空' })
  @Length(1, 50)
  name: string;
}
